<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ page contentType="text/html;charset=utf-8"%>
<%@ page import="com.cs.beneficios.common.ConnectionFactory,com.cs.beneficios.common.entity.Consultas, java.sql.*, java.util.*"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ModuloDominio</title>

<script language="javascript">
 function enviar(locacion){
  document.frmVFL.action=locacion;
  document.frmVFL.submit();
 }
 
 
</script>

</head>
<body>
  <link href="<%= request.getContextPath() + "/css/bloques.css" %>" rel="stylesheet" type="text/css">
  <link href="<%= request.getContextPath() + "/css/table.css" %>" rel="stylesheet" type="text/css">
  <P></P>
  <P></P>
  
  <form name="frmVFL" method="get">
    <DIV align="center">
      <%
          //ConnectionFactory cf = new ConnectionFactory("beneficios","beneficios");
		  ConnectionFactory cf = new ConnectionFactory();
          Consultas objCons = new Consultas(cf);
          String cod = request.getParameter("codatributo");
          String Nombre = objCons.Nombre(cod);
          cf.closeConnection(objCons.getConn());
      %>
      <font class="titulosenblanco"><STRONG>Ingreso de Valores para el Atributo <%=Nombre%></STRONG></font>
    </DIV>
    <DIV align="center">
      <table align="center" cellspacing="3" cellpadding="2" border="0" width="20%">
        <tr>
          <td colspan="2" width="40%" class="celdatabla" align="center">
            <STRONG>Tipo de Lista</STRONG>
                    
        </tr>
        <tr>
          <td width="25%" class="celdatabla" align="center"> 
            <STRONG>Nombre</STRONG>
          </td>
         
          <td class="celdatabla" align="center">
            <STRONG>&iquest;Vigente?</STRONG>
          </td>
          
         
        </tr>
        <tr>
          
          <td width="25%" align="center">
           
            <input NAME="tipovfldescrip" Class="form" size="20" type="text"/>
          </td>
          
          <td align="center">
            <SELECT NAME="tipovflvigente" Class="form">
                <OPTION value="S">Si</OPTION>
                <OPTION value="N">No</OPTION>
            </SELECT>
          </td>
         
        </tr>
       
       
      </table>
    </DIV>
    <br>
    <br>
    <DIV align="center">
      <table align="center" cellspacing="3" cellpadding="2" border="0" width="55%">

        <tr>
          <td width="40%" class="celdatabla" align="center">
            <STRONG>Valores de la Lista</STRONG>
          </td>
          
        </tr>

        
          <td width="25%" class="celdatabla" align="center"> 
            <STRONG>Nombre</STRONG>
          </td>
          
                  
        </tr>
<% 
     for(int i=1;i<8;i++)
      {    
%>
        <tr>
          
          <td width="25%" align="center">
           
            <input NAME="descripcion<%=i%>" Class="form" size="25" type="text" maxlength="24"/>
          </td>
                            
        </tr>
<% 
     }
%>       
       
      </table>
    <br>
    </DIV>
    <DIV align="center">
      <input type="hidden" name="dom" value="1">
      <input type="hidden" name="mostregresar" value="1"> 
      <% session.setAttribute("Escoger","1"); %>
      
      <input type="hidden" name="codatributo" value="<%=request.getParameter("codatributo")%>">
      <% String Ruta = "'"+request.getContextPath() + "/InsertarDominio.do'";
      %>
      <input type="BUTTON" value="Guardar" language="javascript" onclick="enviar(<%=Ruta%>)"/>
      
      <% String Ruta2 = "'"+request.getContextPath() + "/AdicionInsertDominio.do'";
      %>
      <input type="BUTTON" value="Adicionar" language="javascript" onclick="enviar(<%=Ruta2%>)"/>
    </DIV>
    
  

  </form>
</body>
</html>